package com.liezh.singletons;

/**
 * @author liezh
 * @date 2021-8-31
 */
public abstract class RpcClient {
    private String ip;
    private String port;
    private int poolSize;
    private int timeout;

    protected RpcClient() {}
    protected RpcClient(String ip, String port, int poolSize, int timeout) {
        this.ip = ip;
        this.port = port;
        this.poolSize = poolSize;
        this.timeout = timeout;
    }

    public boolean send(String data) {
        String str = String.format("remotes to ip: %s port: %s", this.ip, this.port);
        System.out.println(str);
        System.out.println(data);
        return true;
    }
}
